package org.jeecg.modules.rental.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 租车客户
 * @Author: sean
 * @Date:   2024-04-28
 * @Version: V1.0
 */
@Data
@TableName("rental_account")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rental_account对象", description="租车客户")
public class RentalAccount implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @Excel(name = "cid", width = 15)
    @ApiModelProperty(value = "cid")
    private String cid;
    @Excel(name = "客户端编号", width = 15)
    @ApiModelProperty(value = "客户端编号")
    private String clientCode;
    @Excel(name = "客户端平台", width = 15)
    @ApiModelProperty(value = "客户端平台")
    private String clientPlatform;
    @Excel(name = "微信openid", width = 15)
    @ApiModelProperty(value = "微信openid")
    private String wxOpenId;
	/**账户编号*/
	@Excel(name = "账户编号", width = 15)
    @ApiModelProperty(value = "账户编号")
    private String accountCode;
	/**微信名*/
	@Excel(name = "微信名", width = 15)
    @ApiModelProperty(value = "微信名")
    private String accountName;
    /**密码*/
    @Excel(name = "密码", width = 15)
    @ApiModelProperty(value = "密码")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    /**密码*/
    @Excel(name = "md5密码盐", width = 15)
    @ApiModelProperty(value = "md5密码盐")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String salt;
	/**昵称*/
	@Excel(name = "昵称", width = 15)
    @ApiModelProperty(value = "昵称")
    private String nickName;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String phone;
    /**邮箱*/
    @Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "邮箱")
    private String email;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String image;
	/**身份证名称*/
	@Excel(name = "身份证名称", width = 15)
    @ApiModelProperty(value = "身份证名称")
    private String identityName;
	/**身份证号码*/
	@Excel(name = "身份证号码", width = 15)
    @ApiModelProperty(value = "身份证号码")
    private String identityNumber;
    @Excel(name = "推荐人", width = 15)
    @ApiModelProperty(value = "推荐人")
    private String recommendBy;
//	/**归属设备id*/
//	@Excel(name = "车辆id", width = 15)
//    @ApiModelProperty(value = "车辆id")
//    @TableField(updateStrategy = FieldStrategy.IGNORED)
//    @JsonSerialize(using = ToStringSerializer.class)
//    private Long carId;
    @Excel(name = "账户状态", width = 15)
    @ApiModelProperty(value = "账户状态 0-冻结 1-启用")
    private Integer status;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    @Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识 0-正常 1-删除")
    @TableLogic( value = "0", delval = "1")
    private String isDeleted;
}
